var app = angular.module('FusionV3', []);

app.controller('connectionController', [
		'$scope',
		'$http',
		function($scope, $http) {

			$scope.connection = new Object();

			$scope.saveConnection = function() {
				debugger;
				$http.post("../rest/configuration/saveConnection",
						$scope.connection).success(function(data) {
							debugger;
					if (data.result) {
						$scope.msg="saved";
					} else {
						$scope.msg="error";
					}

				}).error(function(data) {
					console.log(data);
				});

			}

		}]);